package cn.funeralobjects.upms.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author FuneralObjects
 * Create date: 2019/9/10 2:17 AM
 */
@Entity
@Table(name = "t_user_group")
@IdClass(EUserGroup.class)
@Data
@Accessors(chain = true)
@EqualsAndHashCode
public class EUserGroup implements Serializable {
    /**
     * 用户id
     */
    @Id
    private Integer userId;
    /**
     * 组id
     */
    @Id
    private Integer groupId;
}
